﻿using BJ.AuthDomain.IService;
using BJ.AuthEntity.Models;
using Syspetro.Core.DbAccessor;
using Syspetro.Deploy.FreeSqlDb;

namespace BJ.AuthDomain.Service
{
    public class RoleService : EntityBaseService<AdminRole>, IRoleService
    {
        readonly IRepository<AdminRole> repository;
        public RoleService(IFreeSql freeSql)
        {
            this.repository = new FreeSqlRepository<AdminRole>(freeSql);
        }
        public override IRepository<AdminRole> Repository
        {
            get
            {
                return repository;
            }
        }
    }
}
